import request from '@/utils/request'
// 获取物流详细信息
export function findLogisticsById(data) {
  return request({
    'url': '/logistics/logistics/Explicit/LogsNumber/'+data,
    'method': 'get',

  })
}
//获取送件人信息
export function findPostmanById(data) {
  return request({
    'url': '/logistics/postman/'+data,
    'method': 'get',

  })
}
//查询快递员角色ID
export function findIdByName(data) {
  return request({
    'url': '/system/role/list',
    'method': 'get',
    data
  })
}
//授权为快递员
export function authToPostman(data) {
  return request({
    'url': '/system/user/toPostman',
    'method': 'post',
    data
  })
}
//向快递员表中插入数据
export function addPostman(data) {
  return request({
    'url': '/logistics/postman/',
    'method': 'post',
    data
  })
}
//查询我的快递单
export function findMyOrderById(data) {
  return request({
    'url': '/logistics/logistics/list',
    'method': 'get',
    data
  })
}
//通过订单id查订单
export function findOrderById(data) {
  return request({
    'url': '/cart/order/'+data,
    'method': 'get',
  })
}
//通过id查user
export function findUserById(data) {
  return request({
    'url': '/system/user/list',
    'method': 'get',
    data
  })
}


//通过id查user
export function findUserById2(userId) {
  console.log(userId)
  return request({
    'url': '/system/user/'+userId,
    'method': 'get',
  })
}



//更改状态
export function updateStatus(data) {
  return request({
    'url': '/logistics/logistics/',
    'method': 'put',
    data
  })
}


